﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="WrongWordEntity" targetNamespace="http://tempuri.org/WrongWordEntity.xsd" xmlns:mstns="http://tempuri.org/WrongWordEntity.xsd" xmlns="http://tempuri.org/WrongWordEntity.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="LocalDataConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="LocalDataConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MemoryGames.Properties.Settings.GlobalReference.Default.LocalDataConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnswerTableAdapter" GeneratorDataComponentClassName="AnswerTableAdapter" Name="Answer" UserDataComponentName="AnswerTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="LocalDataConnectionString (Settings)" DbObjectName="WrongWord.Answer" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [WrongWord].[Answer] WHERE (([AnswerId] = @Original_AnswerId) AND ([QuestionId] = @Original_QuestionId) AND ([Answer] = @Original_Answer) AND ([CorrectAnswer] = @Original_CorrectAnswer))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AnswerId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AnswerId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QuestionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuestionId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Answer" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Answer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_CorrectAnswer" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CorrectAnswer" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [WrongWord].[Answer] ([QuestionId], [Answer], [CorrectAnswer]) VALUES (@QuestionId, @Answer, @CorrectAnswer);
SELECT AnswerId, QuestionId, Answer, CorrectAnswer FROM WrongWord.Answer WHERE (AnswerId = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QuestionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuestionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Answer" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Answer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@CorrectAnswer" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CorrectAnswer" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT AnswerId, QuestionId, Answer, CorrectAnswer FROM WrongWord.Answer</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [WrongWord].[Answer] SET [QuestionId] = @QuestionId, [Answer] = @Answer, [CorrectAnswer] = @CorrectAnswer WHERE (([AnswerId] = @Original_AnswerId) AND ([QuestionId] = @Original_QuestionId) AND ([Answer] = @Original_Answer) AND ([CorrectAnswer] = @Original_CorrectAnswer));
SELECT AnswerId, QuestionId, Answer, CorrectAnswer FROM WrongWord.Answer WHERE (AnswerId = @AnswerId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QuestionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuestionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Answer" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Answer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@CorrectAnswer" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CorrectAnswer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AnswerId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AnswerId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QuestionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuestionId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Answer" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Answer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_CorrectAnswer" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="CorrectAnswer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="AnswerId" ColumnName="AnswerId" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@AnswerId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AnswerId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="AnswerId" DataSetColumn="AnswerId" />
              <Mapping SourceColumn="QuestionId" DataSetColumn="QuestionId" />
              <Mapping SourceColumn="Answer" DataSetColumn="Answer" />
              <Mapping SourceColumn="CorrectAnswer" DataSetColumn="CorrectAnswer" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="QuestionTableAdapter" GeneratorDataComponentClassName="QuestionTableAdapter" Name="Question" UserDataComponentName="QuestionTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="LocalDataConnectionString (Settings)" DbObjectName="WrongWord.Question" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [WrongWord].[Question] WHERE (([QuestionId] = @Original_QuestionId) AND ([Question] = @Original_Question))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QuestionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuestionId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Question" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Question" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [WrongWord].[Question] ([Question]) VALUES (@Question);
SELECT QuestionId, Question FROM WrongWord.Question WHERE (QuestionId = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Question" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Question" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT QuestionId, Question FROM WrongWord.Question</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [WrongWord].[Question] SET [Question] = @Question WHERE (([QuestionId] = @Original_QuestionId) AND ([Question] = @Original_Question));
SELECT QuestionId, Question FROM WrongWord.Question WHERE (QuestionId = @QuestionId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Question" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Question" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QuestionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuestionId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Question" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Question" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="QuestionId" ColumnName="QuestionId" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QuestionId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="QuestionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="QuestionId" DataSetColumn="QuestionId" />
              <Mapping SourceColumn="Question" DataSetColumn="Question" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="WrongWordEntity" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="WrongWordEntity" msprop:Generator_DataSetName="WrongWordEntity" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Question" msprop:Generator_UserTableName="Question" msprop:Generator_RowDeletedName="QuestionRowDeleted" msprop:Generator_TableClassName="QuestionDataTable" msprop:Generator_RowChangedName="QuestionRowChanged" msprop:Generator_RowClassName="QuestionRow" msprop:Generator_RowChangingName="QuestionRowChanging" msprop:Generator_RowEvArgName="QuestionRowChangeEvent" msprop:Generator_RowEvHandlerName="QuestionRowChangeEventHandler" msprop:Generator_TablePropName="Question" msprop:Generator_TableVarName="tableQuestion" msprop:Generator_RowDeletingName="QuestionRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="QuestionId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="QuestionId" msprop:Generator_ColumnPropNameInRow="QuestionId" msprop:Generator_ColumnVarNameInTable="columnQuestionId" msprop:Generator_ColumnPropNameInTable="QuestionIdColumn" type="xs:int" />
              <xs:element name="Question" msprop:Generator_UserColumnName="Question" msprop:Generator_ColumnPropNameInRow="Question" msprop:Generator_ColumnVarNameInTable="columnQuestion" msprop:Generator_ColumnPropNameInTable="QuestionColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Answer" msprop:Generator_UserTableName="Answer" msprop:Generator_RowDeletedName="AnswerRowDeleted" msprop:Generator_TableClassName="AnswerDataTable" msprop:Generator_RowChangedName="AnswerRowChanged" msprop:Generator_RowClassName="AnswerRow" msprop:Generator_RowChangingName="AnswerRowChanging" msprop:Generator_RowEvArgName="AnswerRowChangeEvent" msprop:Generator_RowEvHandlerName="AnswerRowChangeEventHandler" msprop:Generator_TablePropName="Answer" msprop:Generator_TableVarName="tableAnswer" msprop:Generator_RowDeletingName="AnswerRowDeleting" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="AnswerId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="AnswerId" msprop:Generator_ColumnPropNameInRow="AnswerId" msprop:Generator_ColumnVarNameInTable="columnAnswerId" msprop:Generator_ColumnPropNameInTable="AnswerIdColumn" type="xs:int" />
                    <xs:element name="QuestionId" msprop:Generator_UserColumnName="QuestionId" msprop:Generator_ColumnPropNameInRow="QuestionId" msprop:Generator_ColumnVarNameInTable="columnQuestionId" msprop:Generator_ColumnPropNameInTable="QuestionIdColumn" type="xs:int" />
                    <xs:element name="Answer" msprop:Generator_UserColumnName="Answer" msprop:Generator_ColumnPropNameInRow="Answer" msprop:Generator_ColumnVarNameInTable="columnAnswer" msprop:Generator_ColumnPropNameInTable="AnswerColumn">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="40" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="CorrectAnswer" msprop:Generator_UserColumnName="CorrectAnswer" msprop:Generator_ColumnPropNameInRow="CorrectAnswer" msprop:Generator_ColumnVarNameInTable="columnCorrectAnswer" msprop:Generator_ColumnPropNameInTable="CorrectAnswerColumn" type="xs:boolean" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Answer" />
      <xs:field xpath="mstns:AnswerId" />
    </xs:unique>
    <xs:unique name="Question_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Question" />
      <xs:field xpath="mstns:QuestionId" />
    </xs:unique>
    <xs:keyref name="FK_Answer_Question" refer="Question_Constraint1" msdata:IsNested="true" msprop:rel_Generator_UserRelationName="FK_Answer_Question" msprop:rel_Generator_RelationVarName="relationFK_Answer_Question" msprop:rel_Generator_UserChildTable="Answer" msprop:rel_Generator_UserParentTable="Question" msprop:rel_Generator_ParentPropName="QuestionRow" msprop:rel_Generator_ChildPropName="GetAnswerRows">
      <xs:selector xpath=".//mstns:Answer" />
      <xs:field xpath="mstns:QuestionId" />
    </xs:keyref>
  </xs:element>
</xs:schema>